package main

import (
	"github.com/jmoiron/sqlx"
	"github.com/panjf2000/ants/v2"
)

type ServiceContext struct {
	Config Config
	Db     *sqlx.DB
	// 数据协程池
	DataAntsPool *ants.PoolWithFunc
}

func NewServiceContext(c Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
	}
}
